import typing
import PySide2.QtCore
from PySide2.QtGui import *
from PySide2.QtSvg import *
from PySide2.QtWidgets import *
from PySide2.QtCore import *
import PySide2.QtWidgets
from ui.chatItemWidget_ui import Ui_widget

class ChatItem(Ui_widget, QWidget): 
    def __init__(self, name='', parent=None) -> None:
        super().__init__(parent)
        self.setupUi(parent)
        self.name.setText(name)
        self.image = ''
        self.time.setText('17:00')
        # self.show()

class ChatItemWidget(QWidget):
    def __init__(self, parent: QWidget | None = ...) -> None:
        super().__init__(parent)
        # l = QLabel(self)
        # l.setText('ChatItemWidget')
        self.widget = ChatItem("111", self)
        